<template>
  <div class="center">
    <el-form ref="form" :model="form"  label-width="150px">
      <el-form-item >
      <el-input v-model="form.username" placeholder="请输入账号" 
      /></el-form-item>
      <el-form-item >
        <el-input v-model="form.password" placeholder="请输入密码"
      /></el-form-item>
      <el-form-item>
        <el-button type="primary" @click="logon">登录</el-button
        ><el-button>注册</el-button>
        </el-form-item
      >
    </el-form>
  </div>
</template>

<script>
import { login } from '../../api/login';
export default {
data(){
    return{
        form:{
            username:'',
            password:''
        }
    }
},


methods: {
    // 登录确定操作
    logon(){
      login().then(()=>{
        
      })
    }
},
};
</script>

<style  scoped>

</style>
